import request from '@/utils/request'

// 查询商家入驻列表
export function listTyShop(query) {
  return request({
    url: '/system/tyShop/list',
    method: 'get',
    params: query
  })
}

export function getSelectlist(query) {
  return request({
    url: '/system/tyShop/getSelectlist',
    method: 'get',
    params: query
  })
}

// 查询商家入驻详细
export function getTyShop(id) {
  return request({
    url: '/system/tyShop/' + id,
    method: 'get'
  })
}

// 新增商家入驻
export function addTyShop(data) {
  return request({
    url: '/system/tyShop',
    method: 'post',
    data: data
  })
}

// 修改商家入驻
export function updateTyShop(data) {
  return request({
    url: '/system/tyShop',
    method: 'put',
    data: data
  })
}

// 删除商家入驻
export function delTyShop(id) {
  return request({
    url: '/system/tyShop/' + id,
    method: 'delete'
  })
}

//校验手机号
export function checkUserPhone(query) {
  return request({
    url: '/system/tyShop/checkUserPhone/',
    method: 'get',
    params: query
  })
}

